<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" th:action="@{getCarts}">
    用户Id:<input type="text" name="userId" />
    <input type="submit" value="提交">
</form>
<table>
    <tr>
        <th>服装Id</th>
        <th>数量</th>
        <th>单位价格</th>
        <th>实际单位价格</th>
        <th>总价格</th>
        <th>实际价格</th>
    </tr>
    <tr th:each="oc:${ocList}">
        <td th:text="${oc.getClothesId()}">orderId</td>
        <td th:text="${oc.getNum()}">num</td>
        <td th:text="${oc.getUnitPrice()}"/>
        <td th:text="${oc.getUnitActualPrice()}"/>
        <td th:text="${oc.getTotalPrice()}">totalPrice</td>
        <td th:text="${oc.getActualTotalPrice()}">actualPrice</td>
    </tr>
</table>
<form method="post" th:action="@{createOrder}">
    <input type="hidden" name="userId" value="1"\>
    <input type="submit" value="生成订单"\>
</form>
</body>
</html>